using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DatabaseManager.Models
{
    ///<summary>
    ///已注册的数据库连接信息
    ///</summary>
    [SugarTable("registered_databases")]
    public partial class RegisteredDatabases
    {
           public RegisteredDatabases(){


           }
           /// <summary>
           /// Desc:主键ID
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")]
           public int Id {get;set;}

           /// <summary>
           /// Desc:数据库名称
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="database_name")]           
           public string DatabaseName {get;set;}

           /// <summary>
           /// Desc:数据库类型(mysql/sqlserver/oracle/postgresql)
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="db_type")]           
           public string DbType {get;set;}

           /// <summary>
           /// Desc:加密的连接字符串
           /// Default:
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="connection_string")]           
           public string ConnectionString {get;set;}

           /// <summary>
           /// Desc:数据库描述
           /// Default:
           /// Nullable:True
           /// </summary>
           [SugarColumn(ColumnName="description")]           
           public string Description {get;set;}

           /// <summary>
           /// Desc:是否启用(1:启用,0:禁用)
           /// Default:1
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="is_enabled")]           
           public byte IsEnabled {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="created_time")]           
           public DateTime CreatedTime {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:False
           /// </summary>
           [SugarColumn(ColumnName="updated_time")]           
           public DateTime UpdatedTime {get;set;}

    }
}
